package com.esiag.pdsteam.referencement.bean;

import com.esiag.pdsteam.referencement.annotation.DataField;
import com.esiag.pdsteam.referencement.annotation.DataTable;
import com.esiag.pdsteam.referencement.annotation.TableIdentificateur;

@DataTable
public class Adresse {
	@TableIdentificateur
	@DataField(fieldName="adr")
	private String adrMac;
	
	

	@DataField(fieldName="adrIP")
	private String ip;
	
	@DataField(fieldName="port")
	private int port;
	
	public Adresse() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	public Adresse(String adrMac, String ip, int port) {
		super();
		this.adrMac = adrMac;
		this.ip = ip;
		this.port = port;
	}

	public String getAdrMac() {
		return adrMac;
	}

	public void setAdrMac(String adrMac) {
		this.adrMac = adrMac;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	@Override
	public String toString() {
		return "Adresse [adrMac=" + adrMac + ", ip=" + ip + ", port=" + port
				+ "]";
	}
}
